package task

import (
	"go-task/data"
	"net"
)

type TaskHandler interface {
	Handler(s *TaskServer, conn net.Conn, msgData *data.MsgData)
}

var taskHandlerFactory = map[int]TaskHandler{
	data.CONN:      NewConnTaskHandler(),
	data.HEARTBEAT: NewHeartbeatTaskHandler(),
	data.TASK_RESP: NewRespTaskHandler(),
}
